{include file="news/header.tpl"}
{include file="module/edit.header.tpl"}
	<tr>
		<td></td>
		<td colspan="2">
		
		 <script id="container" name="content" type="text/plain">
{$news.content}
    </script>
</td>
	

	</tr>

	<tr>
		<td>摘要:</td>
		<td><textarea class="form-control" style="width: 700px;" cols="80"
			id="summary" name="summary" rows="5">{$news.summary}</textarea></td>
		<td></td>

	</tr>


	<tr>
		<td>作者:</td>
		<td><input type="text" name="author"
			class="form-control" value="{$news.author}" ></td>
		<td></td>

	</tr>
	<tr>
		<td>关键词:</td>
		<td ><input type="text" name="keyword"
			class="input-xlarge" value="{$news.keyword}"></td>
		<td></td>

	</tr>
	
	<tr>
		<td>模板</td>
		<td ><input type="text" name="template"
			class="input-xlarge" value="{$news.template}"></td>
		<td></td>

	</tr>
	
<tr>
		<td></td>
		<td colspan=2 class=btnline align=center><input type="hidden"
			name="id" value="{$news.id}"> <input type="hidden" name="views"
			value="{$news.views}" />
		<button type="submit" class="btn "><i class="icon-ok"></i>保存
		</button>
		<input type="reset" value="重置" class=btn disabled></td>
		<td></td>
	</tr>
	
	<tr>
		<td></td>
		<td colspan=2 class=btnline align=center>
		
		</td>
		<td></td>
	</tr>
	
	 </table>
    </div>
    <div class="tab-pane" id="tab2">
    <table class="table">
  
	

	<tr>
	<td class="span2">权重 </td>
   		<td><input type="text" name="sort" value="{$news.sort}" class="input-small"></td>

		<td > </td>
	
</tr>
	<tr>
	<td >浏览次数 </td>
   		<td ><input type="text" name="views" value="{$news.views}"  class="input-small"></td>

		<td > </td>
	
</tr>

	
		<tr>
		<td>权限</td>
		<td>
		<div ><select name="groupid" class="form-control">
		 {foreach from=$group item=l key=key}
      
      <option value={$key} {if $news.groupid==$key}selected{/if}>{$l}</option>
      {/foreach}
		

		</select></div>
		</td>
		<td></td>

	</tr>
	
	
		<tr>
		<td>发布时间</td>
		<td>
		<span class="input-append date" id="form_date" data-date-format="yyyy-mm-dd hh:ii">
		
		<input type="text" name="date" value="{$news.date|date_format:'%Y-%m-%d %H:%M'}" class=" uneditable-input">
		
    <span class="add-on"><i class="icon-calendar"></i></span></span>
		</td>

		<td></td>

	</tr>
	
	

	<tr>
	<td >状态 </td>
   		<td >
   		<input type="radio"  name="status"  value="0" {if $news.status==0}checked{/if}>显示
   		   	&nbsp;&nbsp;<input type="radio"  name="status"  value="1" {if $news.status==1}checked{/if}>隐藏
   		
   		</td>

		<td > </td>
	
</tr>
<tr>
		<td></td>
		<td colspan=2 class=btnline align=center><input type="hidden"
			name="id" value="{$news.id}"> <input type="hidden" name="views"
			value="{$news.views}" />
		<button type="submit" class="btn "><i class="icon-ok"></i>保存
		</button>
		<input type="reset" value="{$lang['RESET']}" class=btn disabled></td>
		<td></td>
	</tr>
</table>
</div>
<div class="tab-pane" id="tab3">

<table class="table" id="extend">
	

	{foreach from=$extend item=l}
	<tr>
		{if $l.status==3}
		<td><input type="button" class="btn" onclick="apd('{$l.key}');"
			value="增加">{$l.type}{$l.name}</td>
		<td id="{$l.key}">{foreach from=$l.value key=k item=g} <input
			type="text" name="{$l.key}[{$k}]" value="{$g}"> {/foreach}</td>
		<td></td>
		{else}
		<td>{$l.name}</td>
		<td><input type="text" class="form-control" name="{$l.key}"
			value="{$l.value}">({$l.key} {$lang['TYPE']}{$l.type})</td>
		<td>{if $l.status==2}<img src="{$l.{$l.type}}" width=60 height=60>{/if}</td>
		{/if}
	</tr>
	{/foreach}
	
	<tr>
		<td><input type="hidden" name="mid" value="{$module}"></td>
		<td colspan=2 class=btnline align=center><input type="hidden"
			name="id" value="{$news.id}"> 
		<button type="submit" class="btn "><i class="icon-ok"></i>{$lang['SAVE']}
		</button>
		<input type="reset" value="{$lang['RESET']}" class=btn disabled></td>
		<td></td>
	</tr>
</table>
</form>
</div>
</div>
</div></div></div>
{include file="module/footer.tpl"}
{include file="news/footer.tpl"}